package com.kent.callback;

/**
 * Notice:
 *
 * @author kent
 * @version 1.0
 * @date 2021/4/26
 * @since 1.0
 */
public class ManagerTwo implements CallBackInterface {

    private static String NAME = "副经理";

    @Override
    public String getName() {
        return NAME;
    }

    public ManagerTwo(Personnel personnel){
        personnel.doSomething(this, "写代码！");
    }

    @Override
    public void phoneCall(String result) {
        System.out.println("写代码" + result);
    }
}
